<div class="funcarea">
	<label>参数名</label>
	<select id="searchCondition">
	<option value="deployId">发布ID</option>
	
			
			
					<option value="battlePointIds">战点列表</option>	
			
			
			
					<option value="mapId">地图ID</option>	
			
					<option value="userLevel">用户等级</option>	
			
					<option value="coorX">X坐标</option>	
			
					<option value="coorY">Y坐标</option>	
			
					<option value="music">音乐</option>	
			
					<option value="frontCompaignIds">前置战役</option>	
			
					<option value="afterCompaignIds">后置战役</option>	
				</select>
	<label>参数值</label>
	<input type="text" id="searchValue"/>
	<a href="javascript:void(0)" onclick="searchcampaign()">查询</a>
	<a href="javascript:void(0)" onclick="document.location.reload()">刷新</a>
	<a href="javascript:void(0)" onclick="promptAdd()">增加</a>
	<a href="javascript:void(0)" onclick="promptExport()">导出</a>
	<a href="javascript:void(0)" onclick="extract()">转换战役点数据</a>
	<a href="javascript:void(0)" onclick="publish()">发布战役点</a>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
<div class="dataarea">
	<table>
		<thead>
			<tr>
			<th nowrap>发布ID</th>
			
				<th nowrap>名字</th>
			
				<th nowrap>描述</th>
			
				<th nowrap>战点列表</th>
			
				<th nowrap>状态</th>
			
				<th nowrap>VIP</th>
			
				<th nowrap>地图ID</th>
			
				<th nowrap>用户等级</th>
			
				<th nowrap>X坐标</th>
			
				<th nowrap>Y坐标</th>
			
				<th nowrap>音乐</th>
			
				<th nowrap>前置战役</th>
			
				<th nowrap>后置战役</th>
							<th nowrap class="operator">----------操作---------</th>
			</tr>
		</thead>
		<tbody>
		{% for campaign in campaigns %}
			<tr id="row_{{ campaign.id }}">
				<td><a href="javascript:void(0)" onclick="promptMenu({{ campaign.id }})">{{ campaign.deployId }}</a></td>
				
					
						<td>{{ campaign.name }}</td>
									
					
						<td>{{ campaign.desc }}</td>
									
					
						<td>{{ campaign.battlePointIds }}</td>
									
											<td>
							<select disabled>
																
									<option value="-1" {% ifequal -1 campaign.status %}selected="selected"{% endifequal %}>无</option>
								
									<option value="0" {% ifequal 0 campaign.status %}selected="selected"{% endifequal %}>已开启</option>
								
									<option value="1" {% ifequal 1 campaign.status %}selected="selected"{% endifequal %}>未开启</option>
								
									<option value="2" {% ifequal 2 campaign.status %}selected="selected"{% endifequal %}>不显示</option>
								
									<option value="3" {% ifequal 3 campaign.status %}selected="selected"{% endifequal %}>已通过</option>
															</select>
						</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 campaign.vip %}selected="selected"{% endifequal %}>否</option>
								
									<option value="1" {% ifequal 1 campaign.vip %}selected="selected"{% endifequal %}>是</option>
															</select>
						</td>
									
					
						<td>{{ campaign.mapId }}</td>
									
					
						<td>{{ campaign.userLevel }}</td>
									
					
						<td>{{ campaign.coorX }}</td>
									
					
						<td>{{ campaign.coorY }}</td>
									
					
						<td>{{ campaign.music }}</td>
									
					
						<td>{{ campaign.frontCompaignIds }}</td>
									
					
						<td>{{ campaign.afterCompaignIds }}</td>
													<td class="operator">
					<a href="javascript:editcampaign({{ campaign.id }})">编辑</a>
					<a href="javascript:removecampaign({{ campaign.id }})">删除</a>
					<a href="javascript:showcampaign({{ campaign.id }})">显示JSON</a>
				</td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
